{template 'common/header-base'}
<div class="skin-2 skin-2--full" data-skin="2">
	<div class="skin-2__right">
			<div class="skin-2__content main">
			{if !defined('IN_MESSAGE')}
				{if in_array(FRAME, array('account', 'system'))}
				<div class="skin-2__sub">
					<div class="sub-top">
						<!-- 模块信息 -->
						{if !empty($_GPC['module_name']) && !in_array($_GPC['module_name'], array('keyword', 'special', 'welcome', 'default', 'userapi', 'service', 'apply')) || defined('IN_MODULE') && IN_MODULE != ''}
						<div class="apply-fixed-top">
							{template 'common/header-module'}
						</div>
						<!-- 模块信息 -->
						{else}
						<div class="left-menu-top-panel">
							{template 'common/header-' . FRAME}
						</div>
						{/if}
					</div>
					<!-- 二级菜单-->
					<div class="js-menu" id="js-menu-{FRAME}{php echo empty($_W['account']['uniacid']) ? '' : $_W['account']['uniacid']}">
						{loop $frames['section'] $frame_section_id $frame_section}

						{if !isset($frame_section['is_display']) || !empty($frame_section['is_display'])}
						<div class="panel panel-menu">
							{if !empty($frame_section['title'])}
							<div class="panel-heading">
								<span class="{if !empty($_GPC['menu_fold_tag']) && !in_array($frame_section_id, array($_GPC['menu_fold_tag'], 'platform_module_menu')) || empty($_GPC['menu_fold_tag']) && !in_array($frame_section_id, array('platform_module', 'platform_module_menu'))}collapsed{/if}" data-toggle="collapse" data-parent="#js-menu-{FRAME}" data-target="#frame-{$frame_section_id}" onclick="util.cookie.set('menu_fold_tag', util.cookie.get('menu_fold_tag') == '{$frame_section_id}' ? '' : '{$frame_section_id}')">
									<span class="nav-title">{$frame_section['title']}<i class="wi wi-angle-down pull-right setting"></i></span>
								</span>
							</div>
							{/if}
							<ul class="list-group {if !empty($frame_section['title'])}collapse{/if} {if isset($_GPC['menu_fold_tag:'.$frame_section_id]) && $_GPC['menu_fold_tag:'.$frame_section_id] == 0 || in_array($frame_section_id, array('platform_module_menu', 'platform_module_plugin'))}in{/if}" id="frame-{$frame_section_id}" >
								{loop $frame_section['menu'] $menu_id $menu}
								{if !empty($menu['is_display'])}
								{if $menu_id == 'platform_module_plugin_more' || $menu_id == 'platform_module_more'}
								<li class="list-group-item">
									<a href="{php echo $menu['url']}" class="text-over">
										<span class="nav-icon" ><span class="icon-more"><i class="wi wi-plus"></i></span></span>
										<span class="nav-title">{$menu['title']}</span>
									</a>
								</li>
								{else}
								{if !empty($menu['active'])}{php $active_sub_permission = !empty($menu['sub_permission']) ? $menu['sub_permission'] : array();}{/if}
								<li class="list-group-item list-group-item-plugin {if !empty($menu['multilevel'])}list-group-item-more{/if} {if !empty($menu['active'])}active{/if}">
									{if $frame_section_id == 'platform_module_plugin' && !empty($_GPC['m']) && $_GPC['m'] != $menu['main_module']}
									<a class="back" href="{php echo url('module/welcome', array('m' => $menu['main_module'], 'uniacid' => $_W['uniacid']))}" >
										<i class="wi wi-angle-left"></i>
									</a>
									{/if}
									<a href="{if !empty($menu['multilevel'])}javascript:;{else}{$menu['url']}{/if}" {if !empty($menu['multilevel'])}data-toggle="collapse" data-target="#frame-child-{$frame_section_id}-{$menu_id}"{/if} class="text-over" {if $frame_section_id == 'platform_module'}target="_blank"{/if}>
									<span class="nav-icon" >
										{if $frame_section_id == 'platform_module' || $frame_section_id == 'platform_module_plugin'}
										<img src="{$menu['icon']}"/>
										{else}
										<i class="{$menu['icon']}"></i>
										{/if}
									</span>
									<span class="nav-title">{$menu['title']}{if !empty($menu['multilevel'])}<i class="wi wi-angle-down pull-right setting"></i>{/if}</span>
									</a>
									{if !empty($menu['multilevel']) && !empty($menu['childs'])}
									<ul class="list-child collapse in" id="frame-child-{$frame_section_id}-{$menu_id}">
										{loop $menu['childs'] $module_menu_child}
										<li class="list-child-item {if $module_menu_child['active']}active{/if}">
											<a href="{$module_menu_child['url']}" class="text-over">
												<span class="nav-title">{$module_menu_child['title']}</span>
											</a>
										</li>
										{/loop}
									</ul>
									{/if}
								</li>
								{/if}
								{/if}
								{/loop}
							</ul>
						</div>
						{/if}
						{/loop}
					</div>
					<!-- end二级菜单-->
				</div>
				{/if}
				<div class="skin-2__container container">
					<div class="content">
						{if !empty($_W['page']['title']) && $frames['title'] != '首页' && !empty($frames['title']) && !defined('IN_MODULE')}
						<div class="we7-page-title">{$_W['page']['title']}</div>
						{/if}
						{if !empty($frames['dimension']) && $frames['dimension'] == 2}
						<!-- start消息管理菜单特殊,走自己的we7-page-tab,故加此if判断;平台/应用/我的账户无we7-page-table -->
						{if !in_array(FRAME, array('message', 'platform', 'module', 'myself'))}
						<ul class="we7-page-tab">
							{loop $frames['section'][FRAME]['menu'] $menu_id $menu}
							{if in_array(FRAME, array('account_manage', 'permission'))}
							{if permission_check_account_user('see_' . $menu['permission_name'])}
							<li class="{if !empty($menu['active'])}active{/if}"><a href="{$menu['url']}">{$menu['title']}</a></li>
							{/if}
							{else}
							<li class="{if !empty($menu['active'])}active{/if}">
								<a href="{$menu['url']}">
									{$menu['title']}
									<!-- start应用管理中未安装应用数量 -->
									{if FRAME == 'module_manage' && $menu_id == 'module_manage_not_installed'}<span class="color-red"> {if !empty($module_uninstall_total)}({$module_uninstall_total}){/if} </span>{/if}
									<!-- end应用管理中未安装应用数量 -->
								</a>
							</li>
							{/if}
							{/loop}
						</ul>
						{/if}
						<!-- end用户管理菜单和消息管理菜单特殊,走自己的we7-page-tab;平台/应用/我的账户无we7-page-table -->
						{/if}
			{/if}
